package Card.game;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Message from client.
 * 
 * @author Juthamas Utamaphethai 5510546964
 * @author Natcha Chidbhob 5510546026
 * 
 */
public class Message implements Serializable {
	/** message. */
	private String message;
	/** keep message. */
	List<String> mess = new ArrayList<String>();

	/**
	 * Constructor.
	 */
	public Message() {
	}

	/**
	 * set message.
	 * 
	 * @param message
	 */
	public void setMessage(String message) {
		this.message = message;
	}

	/**
	 * add message to List.
	 * 
	 * @param mes
	 */
	public void add(String mes) {
		mess.add(mes);
	}

	/**
	 * get message.
	 * 
	 * @return message
	 */
	public String getMessage() {
		return message;
	}

	/**
	 * send list of message.
	 * 
	 */
	public String[] getClientMess() {
		return mess.toArray(new String[mess.size()]);
	}
}
